import request from '@/utils/request'
//******************登录接口 ****************//
//注册
export function register(data) {
    return request({
        url: '/family_doctor_user/user/register',
        method: 'post',
        data,
    })
}
//登录
export function login(data) {
    return request({
        url: '/family_doctor_user/user/login',
        method: 'post',
        data,
    })
}
//退出登录
export function logout(data) {
    return request({
        url: '/family_doctor_user/user/logout',
        method: 'post',
        data,
    })
}
//******************用户接口 ****************//
//新增/修改用户
export function addUser(data) {
    return request({
        url: '/family_doctor_user/user/addUser',
        method: 'post',
        data,
    })
}
//查询用户
export function getUser(data) {
    return request({
        url: '/family_doctor_user/user/getUser',
        method: 'post',
        data,
    })
}
//修改用户状态
export function updateUserStatus(data) {
    return request({
        url: '/family_doctor_user/user/updateUserStatus',
        method: 'post',
        data,
    })
}
//******************菜单接口 ****************//
//获取菜单数据
export function getAllMenu(data) {
    return request({
        url: '/family_doctor_user/menu/getAllMenu',
        method: 'post',
        data,
    })
}
//添加/编辑菜单
export function addOrUpdateMenu(data) {
    return request({
        url: '/family_doctor_user/menu/addOrUpdateMenu',
        method: 'post',
        data,
    })
}
//删除菜单
export function delMenu(data) {
    return request({
        url: '/family_doctor_user/menu/delMenu',
        method: 'post',
        data,
    })
}
//查看菜单权限
export function getPermission(data) {
    return request({
        url: '/family_doctor_user/menu/getPermission',
        method: 'post',
        data,
    })
}
//添加/编辑菜单权限
export function addOrUpdatePermission(data) {
    return request({
        url: '/family_doctor_user/menu/addOrUpdatePermission',
        method: 'post',
        data,
    })
}
//删除菜单权限
export function delPermission(data) {
    return request({
        url: '/family_doctor_user/menu/delPermission',
        method: 'post',
        data,
    })
}
//******************角色接口 ****************//
//获取角色数据
export function getAllRole(data) {
    return request({
        url: '/family_doctor_user/role/getAllRole',
        method: 'post',
        data,
    })
}
//新增/编辑角色
export function addOrUpdate(data) {
    return request({
        url: '/family_doctor_user/role/addOrUpdate',
        method: 'post',
        data,
    })
}
//******************机构接口 ****************//
//查询机构
export function getAll(data) {
    return request({
        url: '/family_doctor_user/mechanism/getAll',
        method: 'post',
        data,
    })
}
//新增/编辑机构
export function editMechanism(data) {
    return request({
        url: '/family_doctor_user/mechanism/editMechanism',
        method: 'post',
        data,
    })
}
//查询归属地
export function getAuthPlace(data) {
    return request({
        url: '/family_doctor_user/place/getAuthPlace',
        method: 'post',
        data,
    })
}
//******************团队接口 ****************//
//查询团队
export function getAllTeam(data) {
    return request({
        url: '/family_doctor_user/group/getAll',
        method: 'post',
        data,
    })
}
//编辑团队
export function editGroup(data) {
    return request({
        url: '/family_doctor_user/group/editGroup',
        method: 'post',
        data,
    })
}
//******************服务包接口 ****************//
//查询服务包
export function getAllService(data) {
    return request({
        url: '/family_doctor_user/service_package/getAll',
        method: 'post',
        data,
    })
}
//新增/编辑服务包
export function addService(data) {
    return request({
        url: '/family_doctor_user/service_package/edit',
        method: 'post',
        data,
    })
}
//删除服务包
export function delService(data) {
    return request({
        url: '/family_doctor_user/service_package/delete',
        method: 'post',
        data,
    })
}
//******************签约接口 ****************//
//查询签约记录
export function getContract(data) {
    return request({
        url: '/family_doctor_visit/contract/get/contract/info/list',
        method: 'post',
        data,
    })
}
//新增/修改签约
export function editContract(data) {
    return request({
        url: '/family_doctor_visit/contract/edit/contract/info',
        method: 'post',
        data,
    })
}
//******************履约接口 ****************//
//查询履约记录
export function getPerformance(data) {
    return request({
        url: '/family_doctor_visit/contract/get/performance/list',
        method: 'post',
        data,
    })
}
//添加履约
export function addPerformance(data) {
    return request({
        url: '/family_doctor_visit/contract/add/performance',
        method: 'post',
        data,
    })
}
//******************评价接口 ****************//
//添加评价
export function addComment(data) {
    return request({
        url: '/family_doctor_visit/contract/add/comment/one',
        method: 'post',
        data,
    })
}
//查看评价
export function getComment(data) {
    return request({
        url: '/family_doctor_visit/contract/get/comment/one',
        method: 'post',
        data,
    })
}